<h1>Listing documents</h1>
<%= render :partial=> 'layouts/datatable'%>
<table id="list_table" cellpadding="5" cellspacing="0" border="2" width="100%">
  <thead>
    <tr>
      <th>Title</th>
      <th>Description</th>
      <th> Status</th>
      <th>Download</th>
      <th>Upload</th>
      </tr>
  </thead>
<tbody>
 <% @documents.each do |document| %>
  <tr>
    <td><%= document.title %></td>
    <td><%= document.description %></td>
    <td><%= get_doc_status(document,current_client) %></td>
    <td><%= link_to 'Download' , download_document_path(document)%></td>
    <td><%= link_to 'Upload',  upload_document_path(document) %></td>
  </tr>
 <% end %>
 </tbody>
</table>

<br />







